package com.mycompany.project.client;

import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RichTextArea;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DoubleBox;
import com.google.gwt.user.client.ui.DisclosurePanel;
import com.google.gwt.user.client.ui.FileUpload;

public class AgregarServicio extends DialogBox {

	public AgregarServicio() {
		setHTML("Agregar un Servicio");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		setWidget(absolutePanel);
		absolutePanel.setSize("472px", "556px");
		
		Label lblNombre = new Label("Nombre: ");
		absolutePanel.add(lblNombre, 10, 10);
		
		Label lblCategora = new Label("Categor\u00EDa: ");
		absolutePanel.add(lblCategora, 10, 40);
		
		TextBox textBox = new TextBox();
		absolutePanel.add(textBox, 75, 10);
		textBox.setSize("144px", "16px");
		
		ListBox comboCats = new ListBox();
		comboCats.setName("comboCats");
		absolutePanel.add(comboCats, 75, 40);
		comboCats.setSize("152px", "24px");
		
		Label lblDescripcin = new Label("Descripci\u00F3n: ");
		absolutePanel.add(lblDescripcin, 10, 96);
		
		RichTextArea richTextArea = new RichTextArea();
		absolutePanel.add(richTextArea, 10, 120);
		richTextArea.setSize("450px", "112px");
		
		Button btnAceptar = new Button("Aceptar");
		absolutePanel.add(btnAceptar, 280, 518);
		btnAceptar.setSize("100px", "28px");
		
		Button btnCancelar = new Button("Cancelar");
		absolutePanel.add(btnCancelar, 90, 518);
		btnCancelar.setSize("100px", "28px");
		
		Label lblPrecio = new Label("Precio:");
		absolutePanel.add(lblPrecio, 10, 72);
		
		DoubleBox doubleBox = new DoubleBox();
		absolutePanel.add(doubleBox, 75, 68);
		doubleBox.setSize("118px", "16px");
		
		Label lblPesos = new Label("pesos");
		absolutePanel.add(lblPesos, 203, 68);
		
		DisclosurePanel disclosurePanel = new DisclosurePanel("Imagenes", true);
		absolutePanel.add(disclosurePanel, 10, 240);
		disclosurePanel.setSize("436px", "24px");
		
		AbsolutePanel absolutePanel_1 = new AbsolutePanel();
		disclosurePanel.setContent(absolutePanel_1);
		absolutePanel_1.setSize("333px", "71px");
		
		FileUpload fileUpload = new FileUpload();
		absolutePanel_1.add(fileUpload, 10, 10);
		fileUpload.setSize("249px", "26px");
		
		Button btnNewButton = new Button("New button");
		btnNewButton.setText("Upload file");
		absolutePanel_1.add(btnNewButton, 10, 45);
		
		DisclosurePanel disclosurePanel_1 = new DisclosurePanel("Videos", true);
		absolutePanel.add(disclosurePanel_1, 10, 369);
		disclosurePanel_1.setSize("443px", "24px");
		
		AbsolutePanel absolutePanel_2 = new AbsolutePanel();
		disclosurePanel_1.setContent(absolutePanel_2);
		absolutePanel_2.setSize("426px", "83px");
		
		FileUpload fileUpload_1 = new FileUpload();
		absolutePanel_2.add(fileUpload_1, 10, 10);
		fileUpload_1.setSize("249px", "26px");
		
		Button button = new Button("New button");
		button.setText("Upload file");
		absolutePanel_2.add(button, 10, 45);
		button.setSize("77px", "24px");
	}
}
